<div class="form-group">
    <label class="col-sm-2 control-label">发帖强制关注</label>
    <div class="col-sm-9">
        {ife 'goods' $item}
        <label class="radio-inline"><input type="radio" name="needpostfollow" value="0" {if empty($item['needpostfollow']) }checked="true"{/if}  /> 不需关注</label>
        <label class="radio-inline"><input type="radio" name="needpostfollow" value="1" {if $item['needpostfollow'] == 1}checked="true"{/if}   /> 必须关注</label>
        {else}
        <div class='form-control-static'>{if empty($item['needpostfollow'])}不需关注{else}必须关注{/if}</div>
        {/if}
    </div>
</div>

<div class="form-group splitter"></div> 
<div class="form-group">
    <label class="col-sm-2 control-label">分享标题</label>
    <div class="col-sm-9 col-xs-12">
           {ife 'goods' $item}
        <input type="text" name="share_title" id="share_title" class="form-control" value="{$item['share_title']}" />
        <span class='help-block'>如果不填写，默认为版块名称</span>
        {else}
        <div class='form-control-static'>{$item['share_title']}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">分享图标</label>
    <div class="col-sm-9 col-xs-12">
           {ife 'goods' $item}
        {php echo tpl_form_field_image('share_icon', $item['share_icon'])}
        <span class='help-block'>如果不选择，默认为版块LOGO</span>
             {else}
                            {if !empty($item['share_icon'])}
                            <a href='{php echo tomedia($item['share_icon'])}' target='_blank'>
                            <img src="{php echo tomedia($item['share_icon'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
                            </a>
                            {/if}
                        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">分享描述</label>
    <div class="col-sm-9 col-xs-12">
             {ife 'goods' $item}
        <textarea name="description" class="form-control" >{$item['description']}</textarea>
        <span class='help-block'>如果不填写，则默认使用版块描述</span>
             {else}
        <div class='form-control-static'>{$item['description']}</div>
        {/if}
    </div>
</div>